home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / ncd-0.000 / ncd-0 / ncd-0.9.8 / profile < prev    next >
Encoding:
Text File  |  1995-05-04  |  510 b   |  22 lines

  1. # THIS IS FOR THE BASH SHELL
  2.  
  3. # Add this to your .profile, or to /etc/profile for system wide 
  4. # configuration. Note that the ncd executable is in the 
  5. # directory /usr/bin/ncd, modify it if necessary:
  6.  
  7. function ncd()  
  8.     /usr/bin/ncd $*; 
  9.     if [ $? = 0 ]; then 
  10.         cd "$(cat $HOME/.ncd_sdir)"; 
  11.     fi
  12. }
  13.  
  14.  
  15. # In NCD_OPTS environment variable you can define your preferred default
  16. # options. -RHaVDxL are the default ones. NCD_OPTS needs not be defined at
  17. # all if you use these ones.
  18.  
  19. # export NCD_OPTS=-RHaVDxL
  20.  
  21.